package com.pioneer.web.purchase.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * PurOrderBody 采购订单子表
 *
 * @author hlm
 * @date 2025-04-02 14:20:57
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "pur_order_body")
@Data
public class PurOrderBody extends BaseEntity {

    /**
     * 采购订单子表ID
     */
    @TableId(type = IdType.AUTO)
    private Long orderBodyId;

    /**
     * 采购订单ID
     */
    private Long orderId;

    /**
     * 来源单据行ID
     */
    private Long sourceRowid;

    /**
     * 采购部门ID
     */
    private Long deptId;

    /**
     * 存货管理ID
     */
    private Long inventoryId;

    /**
     * 供应商ID
     */
    private Long supplierId;

    /**
     * 采购数量
     */
    private BigDecimal purNumber;

    /**
     * 采购单价
     */
    private BigDecimal purPrice;

    /**
     * 采购总价
     */
    private BigDecimal purTotal;
}
